#!/bin/bash
echo "1.Add CD!"
echo "2.Delete CD!"
read -p "Choose CMD number:" num
case $num in
 "1")
  mkdir /mnt/cdrom/
  mount /dev/sr0 /mnt/cdrom/
  ls -a /mnt/cdrom/
 ;;
 "2")
  umount /mnt/cdrom/
 ;;
 *)
  echo "CMD number is error!($num)"
 ;;
esac
